from tortoise import fields

from app.models.mixins import BaseModel


class Account(BaseModel):
    id = fields.IntField(pk=True)
    firstName = fields.CharField(max_length=256)
    lastName = fields.CharField(max_length=256)
    email = fields.CharField(max_length=256, unique=True, index=True)
    password = fields.CharField(max_length=64)

    class Meta:
        table = "account"
